package com.huazhen.itrip.biz.service.hotelorder;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huazhen.itrip.beans.pojo.ItripHotelOrder;
import com.huazhen.itrip.beans.vo.order.ItripListHotelOrderVO;
import com.huazhen.itrip.beans.vo.order.ItripPersonalOrderRoomVO;
import com.huazhen.itrip.dao.hotelorder.ItripHotelOrderMapper;
@Service("ItripHotelOrderService")
public class ItripHotelOrderServiceImpl implements ItripHotelOrderService {
	@Autowired
	private ItripHotelOrderMapper itripHotelOrderMapper;
	@Override
	public ItripHotelOrder getItripHotelOrderById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelOrderMapper.getItripHotelOrderById(id);
	}

	@Override
	public ItripPersonalOrderRoomVO getItripHotelOrderRoomInfoById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelOrderMapper.getItripHotelOrderRoomInfoById(id);
	}

	@Override
	public List<ItripHotelOrder> getItripHotelOrderListByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelOrderMapper.getItripHotelOrderListByMap(param);
	}

	@Override
	public Integer getItripHotelOrderCountByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelOrderMapper.getItripHotelOrderCountByMap(param);
	}

	@Override
	public Integer insertItripHotelOrder(ItripHotelOrder itripHotelOrder) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelOrderMapper.insertItripHotelOrder(itripHotelOrder);
	}

	@Override
	public Integer updateItripHotelOrder(ItripHotelOrder itripHotelOrder) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelOrderMapper.updateItripHotelOrder(itripHotelOrder);
	}

	@Override
	public Integer deleteItripHotelOrderById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelOrderMapper.deleteItripHotelOrderById(id);
	}

	//未实现此方法
	public Integer updateHotelOrderStatus(Long id, Long modifiedBy) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelOrderMapper.updateHotelOrderStatus(id, modifiedBy);
	}

	//未实现此方法
	public int getRoomNumByRoomIdTypeAndDate(Integer roomId, String startDate, String endDate) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelOrderMapper.getRoomNumByRoomIdTypeAndDate(roomId, startDate, endDate);
	}

	//未实现此方法
	public int updateRoomStore(ItripHotelOrder hotelOrder) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelOrderMapper.updateRoomStore(hotelOrder);
	}

	//未实现此方法
	public List<ItripListHotelOrderVO> getOrderListByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelOrderMapper.getOrderListByMap(param);
	}

	//未实现此方法
	public Integer getOrderCountByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelOrderMapper.getOrderCountByMap(param);
	}

	//未实现此方法
	public Integer flushCancelOrderStatus() throws Exception {
		// TODO Auto-generated method stub
		return itripHotelOrderMapper.flushCancelOrderStatus();
	}

	//未实现此方法
	public Integer flushSuccessOrderStatus() throws Exception {
		// TODO Auto-generated method stub
		return itripHotelOrderMapper.flushSuccessOrderStatus();
	}

}
